<p id="notice"><%= notice %></p>

<p>
  <b>Kommentar:</b>
  <%= @rating.comment %>
</p>

<p>
  <b>Was soll nicht geändert werden?</b>
  <%= @rating.notToBeChanged %>
</p>

<p>
  <b>Was soll geändert werden?</b>
  <%= @rating.toBeChanged %>
</p>

<table border="1">
  <tr>
    <td>Frage</td>
    <td>Bewertung</td>
  </tr>
  <% @rating_questions.each do |rating_question| %>
    <tr>
      <td><%= rating_question.question %></td>
      <% rating_question_result = RatingQuestionResult.find(
        :first, :conditions => {:rating_question_id => rating_question.id, :rating_id => @rating.id}) %>
      <% if !rating_question_result.nil? %>
        <td><%=h rating_question_result.stars %></td>
      <% else %>
        <td>Nicht bewertet</td>
      <% end %>
    </tr>
  <% end %>
</table>


<%= link_to 'Edit', edit_rating_path(@rating) %> |
<%= link_to 'Back', ratings_path %>
